.valid {
  border-color: #429032;
  box-shadow: inset 5px 0 0 #429032;
}
.invalid {
  border-color: #D61D1D;
  box-shadow: inset 5px 0 0 #D61D1D;
}
.form-group {
  width: 32rem;
  padding: 1rem;
  border: 1px solid transparent;
  
}
.form-group:hover {
  border-color: #eee;
  transition: border .2s;
}
label {
  display: block;
  font-weight: normal;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    line-height: 2rem;
    padding: .5rem .5rem .5rem 1rem;
    border: 1px solid #ccc;
    outline: none;
    
}

.form-group input:valid,
.form-group textarea:valid {
  border-color: #429032;
  box-shadow: inset 5px 0 0 #429032;
}

.form-group input:invalid,
  textarea:invalid {
  border-color: #D61D1D;
  box-shadow: inset 5px 0 0 #D61D1D;
} 

